package com.hzx.entity;

import java.util.HashSet;
import java.util.Set;

/**
 * Emp entity. @author MyEclipse Persistence Tools
 */

public class Emp implements java.io.Serializable {

	// Fields

	private Integer eid;
	private Dept dept;
	private String ename;
	private String loginname;
	private String pwd;
	private String eimg;
	private String sex;
	private String eremark;
	private Integer eflag;// 记录员工级别(0 普工 1部门主管 )
	private Integer eadmin;// 记录员工进入系统操作级别(0 —普通操作者 1---部门主管)
	private Integer eis = 1;// 0删除,1没删除

	public Emp() {
		super();
		// TODO Auto-generated constructor stub
	}

	public Emp(Integer eid, Dept dept, String ename, String loginname, String pwd, String eimg, String sex,
			String eremark, Integer eflag, Integer eadmin, Integer eis) {
		super();
		this.eid = eid;
		this.dept = dept;
		this.ename = ename;
		this.loginname = loginname;
		this.pwd = pwd;
		this.eimg = eimg;
		this.sex = sex;
		this.eremark = eremark;
		this.eflag = eflag;
		this.eadmin = eadmin;
		this.eis = eis;
	}

	public Integer getEid() {
		return eid;
	}

	public void setEid(Integer eid) {
		this.eid = eid;
	}

	public Dept getDept() {
		return dept;
	}

	public void setDept(Dept dept) {
		this.dept = dept;
	}

	public String getEname() {
		return ename;
	}

	public void setEname(String ename) {
		this.ename = ename;
	}

	public String getLoginname() {
		return loginname;
	}

	public void setLoginname(String loginname) {
		this.loginname = loginname;
	}

	public String getPwd() {
		return pwd;
	}

	public void setPwd(String pwd) {
		this.pwd = pwd;
	}

	public String getEimg() {
		return eimg;
	}

	public void setEimg(String eimg) {
		this.eimg = eimg;
	}

	public String getSex() {
		return sex;
	}

	public void setSex(String sex) {
		this.sex = sex;
	}

	public String getEremark() {
		return eremark;
	}

	public void setEremark(String eremark) {
		this.eremark = eremark;
	}

	public Integer getEflag() {
		return eflag;
	}

	public void setEflag(Integer eflag) {
		this.eflag = eflag;
	}

	public Integer getEadmin() {
		return eadmin;
	}

	public void setEadmin(Integer eadmin) {
		this.eadmin = eadmin;
	}

	public Integer getEis() {
		return eis;
	}

	public void setEis(Integer eis) {
		this.eis = eis;
	}

	@Override
	public String toString() {
		return "Emp [eid=" + eid + ", dept=" + dept + ", ename=" + ename + ", loginname=" + loginname + ", pwd=" + pwd
				+ ", eimg=" + eimg + ", sex=" + sex + ", eremark=" + eremark + ", eflag=" + eflag + ", eadmin=" + eadmin
				+ ", eis=" + eis + "]";
	}

}